﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="QuickBetVote.aspx.cs" Inherits="LotteryVote.QuickBetVote" Culture="auto"
    meta:resourcekey="PageResource1" UICulture="auto" %>

<%@ Import Namespace="LotteryVote.Entity" %>
<%@ Import Namespace="LotteryVote.Logic.Application" %>
<%@ Register Src="~/Controls/AmountBoard.ascx" TagPrefix="LV" TagName="AmountBoard" %>
<asp:Content ID="Header" ContentPlaceHolderID="head" runat="server">
    <script src="JS/jquery.base64.min.js" type="text/javascript"></script>
    <link href="UI/start/jquery.ui.slider.css" rel="stylesheet" type="text/css" />
    <script src="JS/QuickBet.js" type="text/javascript"></script>
    <link href="Style/QuickBet.css" rel="stylesheet" type="text/css" />
    <title><%=GetLocalResourceObject("PageTitle") %></title>
</asp:Content>
<asp:Content ID="Main" ContentPlaceHolderID="main" runat="server">
    <div style="height: 104px; width: 100%">
        <LV:AmountBoard ID="lv_amountBoard" runat="server" />
        <div>
        </div>
        <div id="command">
            <asp:Button ID="btn_submit" runat="server" Text="提交" OnClick="btn_submit_Click" meta:resourcekey="btn_submitResource1" />
            <input type="reset" value='<%=GetLocalResourceObject("ResetButton")%>' />
        </div>
    </div>
    <div style="width: 100%; border-top: solid 5px #000; overflow: hidden">
        <div id="left">
            <table cellpadding="0" cellspacing="0" class="oddTable">
                <thead>
                    <tr>
                        <td class="even">
                            <%=GetLocalResourceObject("Vietnamese Zodiac")%>
                        </td>
                    </tr>
                    <tr>
                        <td style="height: 60px">
                        </td>
                    </tr>
                </thead>
                <tbody>
                    <%for (int i = 0; i <= LotterySystem.Current.TwelveZodiac.Length / 8; i++)
                      {%>
                    <tr>
                        <td class="odd">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <%for (int j = i * 8; j < i * 8 + 8 && j < LotterySystem.Current.TwelveZodiac.Length; j++)
                              { %>
                            <span class="betNum">
                                <%= LotterySystem.Current.TwelveZodiac[j].ToString("D2")%></span>
                            <%} %>
                        </td>
                    </tr>
                    <%} %>
                    <tr>
                        <td class="odd">
                            <%foreach (var company in BetCompanyList)
                              { %>
                            <input type="checkbox" id='<%=company.CompanyId %>_<%=(int)AutoBetType.TwelveZodiac %>'
                                company='<%= company.CompanyId%>' class='Company_<%=AutoBetType.TwelveZodiac%>' />
                            <label for='<%=company.CompanyId %>_<%=(int)AutoBetType.TwelveZodiac %>'>
                                <%=company.Abbreviation %></label>
                            <%} %>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 62px">
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <%=GetLocalResourceObject("Head")%>
                                    </td>
                                    <td>
                                        <%=GetLocalResourceObject("Last")%>
                                    </td>
                                    <td>
                                        <%=GetLocalResourceObject("HeadAndLast")%>
                                    </td>
                                    <td>
                                        <%=GetLocalResourceObject("Amount")%>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="odd">
                                        <input type="text" id='<%=GetWagerName(AutoBetType.TwelveZodiac,PlayWayEnum.Head) %>_Head'
                                            class='<%=AutoBetType.TwelveZodiac %>' />
                                    </td>
                                    <td class="odd">
                                        <input type="text" id='<%=GetWagerName(AutoBetType.TwelveZodiac,PlayWayEnum.Last) %>_Last'
                                            class='<%=AutoBetType.TwelveZodiac %>' />
                                    </td>
                                    <td class="odd">
                                        <input type="text" id='<%=GetWagerName(AutoBetType.TwelveZodiac,PlayWayEnum.HeadAndLast) %>_HeadAndLast'
                                            class='<%=AutoBetType.TwelveZodiac %>' />
                                    </td>
                                    <td class="odd">
                                        <span id='<%=AutoBetType.TwelveZodiac %>'></span>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="right">
            <div>
                <table cellpadding="0" cellspacing="0" style="width: 50%; float: left">
                    <thead>
                        <tr>
                            <td class="even">
                                <%=GetLocalResourceObject("OddEven")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                            </td>
                        </tr>
                        <%for (int i = 0; i < LotterySystem.Current.OddEven.Length / 5; i++)
                          { %>
                        <tr>
                            <td class='<%=i%2==0?"odd":"" %>'>
                                <%for (int j = i * 5; j < i * 5 + 5 && j < LotterySystem.Current.OddEven.Length; j++)
                                  { %>
                                <span class="betNum">
                                    <%=LotterySystem.Current.OddEven[j]%></span>
                                <%} %>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td>
                                <%foreach (var company in BetCompanyList)
                                  { %>
                                <input type="checkbox" id='<%=company.CompanyId %>_<%=(int)AutoBetType.OddEven %>'
                                    company='<%= company.CompanyId%>' class='Company_<%=AutoBetType.OddEven%>' />
                                <label for='<%=company.CompanyId %>_<%=(int)AutoBetType.OddEven %>'>
                                    <%=company.Abbreviation %></label>
                                <%} %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Head")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Last")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("HeadAndLast")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Amount")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.OddEven,PlayWayEnum.Head) %>_Head'
                                                class='<%=AutoBetType.OddEven %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.OddEven,PlayWayEnum.Last) %>_Last'
                                                class='<%=AutoBetType.OddEven %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.OddEven,PlayWayEnum.HeadAndLast) %>_HeadAndLast'
                                                class='<%=AutoBetType.OddEven %>' />
                                        </td>
                                        <td>
                                            <span id='<%=AutoBetType.OddEven %>'></span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table cellpadding="0" cellspacing="0" style="width: 50%">
                    <thead>
                        <tr>
                            <td class="even">
                                <%=GetLocalResourceObject("EvenOdd")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                            </td>
                        </tr>
                        <%for (int i = 0; i < LotterySystem.Current.EvenOdd.Length / 5; i++)
                          { %>
                        <tr>
                            <td class='<%=i%2==0?"odd":"" %>'>
                                <%for (int j = i * 5; j < i * 5 + 5 && j < LotterySystem.Current.EvenOdd.Length; j++)
                                  { %>
                                <span class="betNum">
                                    <%=LotterySystem.Current.EvenOdd[j].ToString("D2")%></span>
                                <%} %>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td>
                                <%foreach (var company in BetCompanyList)
                                  { %>
                                <input type="checkbox" id='<%=company.CompanyId %>_<%=(int)AutoBetType.EvenOdd %>'
                                    company='<%= company.CompanyId%>' class='Company_<%=AutoBetType.EvenOdd%>' />
                                <label for='<%=company.CompanyId %>_<%=(int)AutoBetType.EvenOdd %>'>
                                    <%=company.Abbreviation %></label>
                                <%} %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Head")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Last")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("HeadAndLast")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Amount")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.EvenOdd,PlayWayEnum.Head) %>_Head'
                                                class='<%=AutoBetType.EvenOdd %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.EvenOdd,PlayWayEnum.Last) %>_Last'
                                                class='<%=AutoBetType.EvenOdd %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.EvenOdd,PlayWayEnum.HeadAndLast) %>_HeadAndLast'
                                                class='<%=AutoBetType.EvenOdd %>' />
                                        </td>
                                        <td>
                                            <span id='<%=AutoBetType.EvenOdd %>'></span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div>
                <table cellpadding="0" cellspacing="0" style="width: 50%; float: left">
                    <thead>
                        <tr>
                            <td class="even">
                                <%=GetLocalResourceObject("OddOdd")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                            </td>
                        </tr>
                        <%for (int i = 0; i < LotterySystem.Current.OddOdd.Length / 5; i++)
                          { %>
                        <tr>
                            <td class='<%=i%2==0?"odd":"" %>'>
                                <%for (int j = i * 5; j < i * 5 + 5 && j < LotterySystem.Current.OddOdd.Length; j++)
                                  { %>
                                <span class="betNum">
                                    <%=LotterySystem.Current.OddOdd[j].ToString("D2")%></span>
                                <%} %>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td>
                                <%foreach (var company in BetCompanyList)
                                  { %>
                                <input type="checkbox" id='<%=company.CompanyId %>_<%=(int)AutoBetType.OddOdd %>'
                                    company='<%= company.CompanyId%>' class='Company_<%=AutoBetType.OddOdd%>' />
                                <label for='<%=company.CompanyId %>_<%=(int)AutoBetType.OddOdd %>'>
                                    <%=company.Abbreviation %></label>
                                <%} %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Head")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Last")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("HeadAndLast")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Amount")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.OddOdd,PlayWayEnum.Head) %>_Head'
                                                class='<%=AutoBetType.OddOdd %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.OddOdd,PlayWayEnum.Last) %>_Last'
                                                class='<%=AutoBetType.OddOdd %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.OddOdd,PlayWayEnum.HeadAndLast) %>_HeadAndLast'
                                                class='<%=AutoBetType.OddOdd %>' />
                                        </td>
                                        <td>
                                            <span id='<%=AutoBetType.OddOdd %>'></span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
                <table cellpadding="0" cellspacing="0" style="width: 50%">
                    <thead>
                        <tr>
                            <td class="even">
                                <%=GetLocalResourceObject("EvenEven")%>
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                            </td>
                        </tr>
                        <%for (int i = 0; i < LotterySystem.Current.EvenEven.Length / 5; i++)
                          { %>
                        <tr>
                            <td class='<%=i%2==0?"odd":"" %>'>
                                <%for (int j = i * 5; j < i * 5 + 5 && j < LotterySystem.Current.EvenEven.Length; j++)
                                  { %>
                                <span class="betNum">
                                    <%=LotterySystem.Current.EvenEven[j].ToString("D2")%></span>
                                <%} %>
                            </td>
                        </tr>
                        <%} %>
                        <tr>
                            <td>
                                <%foreach (var company in BetCompanyList)
                                  { %>
                                <input type="checkbox" id='<%=company.CompanyId %>_<%=(int)AutoBetType.EvenEven %>'
                                    company='<%= company.CompanyId%>' class='Company_<%=AutoBetType.EvenEven%>' />
                                <label for='<%=company.CompanyId %>_<%=(int)AutoBetType.EvenEven %>'>
                                    <%=company.Abbreviation %></label>
                                <%} %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Head")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Last")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("HeadAndLast")%>
                                        </td>
                                        <td class="odd">
                                            <%=GetLocalResourceObject("Amount")%>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.EvenEven,PlayWayEnum.Head) %>_Head'
                                                class='<%=AutoBetType.EvenEven %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.EvenEven,PlayWayEnum.Last) %>_Last'
                                                class='<%=AutoBetType.EvenEven %>' />
                                        </td>
                                        <td>
                                            <input type="text" id='<%=GetWagerName(AutoBetType.EvenEven,PlayWayEnum.HeadAndLast) %>_HeadAndLast'
                                                class='<%=AutoBetType.EvenEven %>' />
                                        </td>
                                        <td>
                                            <span id='<%=AutoBetType.EvenEven %>'></span>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <input type="hidden" id="hd_betValue" name="hd_betValue" />
    </div>
</asp:Content>
